home *** CD-ROM | disk | FTP | other *** search
- /*
- * whatis.h
- */
-
- static char *rcsid_whatis_h = "$Id: whatis.h,v 2.0 1992/09/13 05:02:44 rosenkra Exp $";
-
- /*
- * $Log: whatis.h,v $
- * Revision 2.0 1992/09/13 05:02:44 rosenkra
- * total rewrite. this if first rev of this file.
- *
- *
- */
-
- #ifdef CHECK_MAGIC
- #define MAGIC "WHATIS/ST" /* file's magic */
- #define MAGIC_CHECK_LEN 9 /* how much of magic has to match? */
- /* rest is comment. this MAGIC is */
- /* for whatis._?_ files */
- #endif
-
- #if defined(unix) || defined(__unix)
- #define MANPATH "/usr/man\0\0<-----------patch space------------->"
- /* db is $MANPATH/whatis._?_ */
- #else
- #define MANPATH "c:\\usr\\man\0\0<-----------patch space------------->"
- /* db is $MANPATH/whatis._?_ */
- #endif
- #define WHATIS "whatis" /* db name (root) */
- #define WHATISIN "whatisin" /* list of sections */
-
- #define SECTIONS "0123456789lno\0\0<----------patch space------------->"
- /* list of sections */
-
- #if defined(unix) || defined(__unix)
- #define SLASH "/" /* use "/" for unix, UNIXMODE */
- #else
- #define SLASH "\\" /* use "/" for unix, UNIXMODE */
- #endif
-
- #define REC_SIZE 1024 /* max line length in database */
-
- #define MAX_ALIAS 10 /* max number of aliases, */
- #define MAX_XREF 50 /* cross refs, and */
- #define MAX_KEYW 50 /* keywords */
-
-
- /*
- * record structure (after reading from file)
- */
- struct rec
- {
- char *name;
- char *alias[MAX_ALIAS];
- char *section;
- char *subsect;
- char *desc;
- char *xref[MAX_XREF];
- char *keyw[MAX_KEYW];
- };
-
-